
"""
    权限
"""

from rest_framework import serializers
from users.models import Permission


class PermissionModelSerializer(serializers.ModelSerializer):
    """
    权限列表序列化
    """

    class Meta:
        model = Permission
        fields = ('id', 'name', 'method', 'pid')
